package be.ac.ua.comp.projectGPT.biddingAgents;

//~--- non-JDK imports --------------------------------------------------------

import be.ac.ua.comp.projectGPT.players.Consumer;
import be.ac.ua.comp.projectGPT.types.English;


//~--- JDK imports ------------------------------------------------------------


public class EnglishBiddingAgent extends BiddingAgent implements English {

    public EnglishBiddingAgent(String name, Consumer consumer) {
        super(name,consumer);
    }

    @Override
    public long askBid(long currentBid) {

        if(budget>=100) {
            budget -= 100;
            logger.info("Bidding 100, current budget: "+budget);
            return 100;
        } else {
            logger.info("Insufficient budget");
            return 0;
        }
    }
}
